/*
 * @Author: your name
 * @Date: 2021-01-11 09:26:16
 * @LastEditTime: 2021-01-13 17:45:43
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \wxapp\pages\vehicle\service\service.js
 */
 var t = getApp(),
  a = t.requirejs("core");
Page({
    data: {
        imgUrls: ["/static/images/service.jpg","/static/images/service.jpg"],
        value:'',
        list:[
           /* {
                imageSrc:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2542054890,4291997804&fm=26&gp=0.jpg",
                title:"六年免检",
                subTitle:"六年免检车辆",
                price:0,
                purchase:1,
                strictPurchase:0
            },
            {
                imageSrc:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2542054890,4291997804&fm=26&gp=0.jpg",
                title:"上线年检",
                subTitle:"小微（轻）型车",
                price:320,
                purchase:1,
                strictPurchase:0
            },
            {
                imageSrc:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2542054890,4291997804&fm=26&gp=0.jpg",
                title:"上线年检",
                subTitle:"中型车",
                price:320,
                purchase:1,
                strictPurchase:0
            },
            {
                imageSrc:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2542054890,4291997804&fm=26&gp=0.jpg",
                title:"上线年检",
                subTitle:"大型车",
                price:320,
                purchase:1,
                strictPurchase:0
            },
            {
                imageSrc:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2542054890,4291997804&fm=26&gp=0.jpg",
                title:"上线年检",
                subTitle:"大型车",
                price:320,
                purchase:1,
                strictPurchase:0
            },
            {
                imageSrc:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2542054890,4291997804&fm=26&gp=0.jpg",
                title:"上线年检",
                subTitle:"大型车",
                price:320,
                purchase:1,
                strictPurchase:0
            },
            {
                imageSrc:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2542054890,4291997804&fm=26&gp=0.jpg",
                title:"上线年检",
                subTitle:"大型车",
                price:320,
                purchase:1,
                strictPurchase:0
            },*/
        ]
    },
    onLoad: function (a) {
      this.getList()
    },
    getList: function () {
        var t = this;
           a.get("vehicle/service/get_list", {
            search:this.data.value
          }, function (a) {
                t.setData({
                    list: a.list
                })
          })
    },
    onChange: function(t) {
        this.setData({
            value: t.detail
        });
    },
    search:function(){

        this.getList()
    }

})